package com.mdd.front.service.staff;


import com.baomidou.mybatisplus.extension.service.IService;
import com.mdd.common.core.PageResult;
import com.mdd.common.entity.staff.Staff;
import com.mdd.front.vo.staff.StaffDetailVo;
import com.mdd.front.vo.staff.StaffListVo;
import com.mdd.front.vo.staff.StaffPageParam;

import java.util.List;

/**
 * 师傅服务接口类
 */
public interface IStaffService extends IService<Staff> {

    /**
     * 师傅列表
     *
     * @param params 搜索参数
     * @return PageResult<StaffVo>
     */
    PageResult<StaffListVo> list(StaffPageParam params);

    /**
     * 师傅详情
     *
     * @param id 主键ID
     * @return Staff
     */
    StaffDetailVo detail(Long id);

    List<StaffDetailVo> listByCityId(Long cityId);

    List<Staff> listStaff(Long goodsId, Long cityId);

    Staff getById(Long staffId);

    Staff getByUserId(Long userId);

    List<Staff> getByCityId(Long cityId);
}
